package com.ruoyi.school.comment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论信息对象 school_comment
 * 
 * @author qiang
 * @date 2022-07-20
 */
public class SchoolComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据库编号 */
    @Excel(name = "数据库编号")
    private Long id;

    /** 知识点编号 */
    @Excel(name = "知识点编号")
    private Long knowledgeId;

    /** 评论用户编号 */
    @Excel(name = "评论用户编号")
    private Long userId;

    /** 评论标题 */
    @Excel(name = "评论标题")
    private String title;

    /** 评论信息 */
    @Excel(name = "评论信息")
    private String content;

    /** 评论序号 */
    @Excel(name = "评论序号")
    private Long replyId;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 修改评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setKnowledgeId(Long knowledgeId) 
    {
        this.knowledgeId = knowledgeId;
    }

    public Long getKnowledgeId() 
    {
        return knowledgeId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setReplyId(Long replyId) 
    {
        this.replyId = replyId;
    }

    public Long getReplyId() 
    {
        return replyId;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("knowledgeId", getKnowledgeId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("replyId", getReplyId())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .append("remark", getRemark())
            .toString();
    }
}
